<?php

$fb_app_id = '453303138016101';
$fb_sec = '87d0b5a98c7fe74fbc11915608cb26b7';
// Create our Application instance (replace this with your appId and secret).
//$facebook = new Facebook(array(
  //'appId'  => '176810195713197'$fb_app_id,
  //'secret' => '6c43a86665e6423c60b50e852a0b91c2'$fb_sec,
//));

$facebook = new Facebook(array(
  'appId'  => $fb_app_id,
  'secret' => $fb_sec,
));

// Get User ID
$fbuser = $facebook->getUser();
if ($fbuser) 
{
  try {
	// Proceed knowing you have a logged in user who's authenticated.
	$user_profile = $facebook->api('/me');
  } catch (FacebookApiException $e) {
	error_log($e);
	$fbuser = null;
  }
}

?>
